<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'article-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>



	<div class="row">
		<?php echo $form->labelEx($model,'zone_id'); ?>
                <?php echo $form->dropDownList($model, 'zone_id', $model->getZoneOptions()); ?>
		<?php echo $form->error($model,'zone_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'headline'); ?>
		<?php echo $form->textField($model,'headline',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'headline'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'source'); ?>
		<?php echo $form->textField($model,'source',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'source'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'topic_id'); ?>
                <?php echo $form->dropDownList($model, 'topic_id', $model->getTopicOptions()); ?>
		<?php echo $form->error($model,'topic_id'); ?>
	</div>


	<div class="row">
		<?php //echo $form->labelEx($model,'body'); ?>
		<?php //echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?>
		<?php //echo $form->error($model,'body'); ?>
	</div>


        <div class="row">
            <?php echo $form->labelEx($model, 'body'); ?>
            <?php //echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?>
            <?php
                $this->widget('ext.ckeditor.CKEditorWidget', array(
                    'model' => $model,
                    'attribute' => 'body',
                ))
            ?>
            <?php echo $form->error($model, 'body'); ?>
        </div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->